import syntaxtree.*;
import visitor.*;

public class Main {
   public static void main(String [] args) {
      try {
         Program raiz = new Analisador(System.in).Program();
          raiz.accept(new PrettyPrintVisitor()); //Saida De PrettyPrint para teste...
          SymbolTable st =   raiz.accept(new BuildSymbolTableVisitor()); //Construir a tabela de símbolos...
      }
      catch (ParseException e) {
         System.out.println(e.toString());
      }
   }
}
